<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page session="true"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script
	src="${pageContext.request.contextPath}/resources/js/views/form_persona.js"></script>
<style>
.error {
	font-family: calibri;
	font-size: 18px;
	color: red;
	font-size: 18px;
}
</style>
<form:form action="registrar_comprador" method="POST" id="form_persona">
	<form:hidden path="id" id="hid" />
	<table class="outputTable">
		<tr>
			<td>Rut (*):</td>
			<td><form:input id="rut" path="rut"
					onblur="doSearchPersona('${pageContext.request.contextPath}/search_persona',this)" /></td>
		</tr>
		<tr>
			<td>Nombre (*):</td>
			<td><form:input path="nombre" /></td>
		</tr>
		<tr>

			<td>Dirección (*):</td>
			<td><form:input path="direccion" /></td>
		</tr>
		<tr>
			<td>Comuna :</td>
			<td><form:select path="comuna.id" items="${listaComunas}"
					itemValue="id" itemLabel="nombre">
				</form:select></td>
		</tr>
		<tr>
			<td>Ciudad (*):</td>
			<td><form:input path="ciudad" /></td>
		</tr>
		<tr>
			<td>Contacto :</td>
			<td><form:input path="contacto" /></td>
		</tr>
		<tr>
			<td>Fono Casa :</td>
			<td><form:input path="fonoCasa" /></td>
		</tr>
		<tr>
			<td>Fono Oficina :</td>
			<td><form:input path="fonoOficina" /></td>
		</tr>

		<tr>
			<td>Fono Móvil:</td>
			<td><form:input path="fonoMovil" /></td>
		</tr>

		<tr>
			<td>Correo(*):</td>
			<td><form:input path="correo" /></td>
		</tr>
		<tr>
			<td>Observaciones :</td>
			<td><form:textarea path="observaciones" rows="3" /></td>
		</tr>
		<tr>
			<td><a href="${pageContext.request.contextPath}/index_gerente"
				class="ui-btn ui-btn-b ui-icon-delete ui-btn-icon-left">Cancelar</a></td>
			<td><button type="submit"
					class="ui-btn ui-icon-check ui-btn-icon-right">Registrar</button></td>
		</tr>
	</table>





</form:form>